package com.sgam.mf.domain.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.sgam.mf.domain.ref.RefCompany;
import com.sgam.mf.domain.ref.RefContractAddFieldsPerService;

@Entity
@Table(name = "CONTRACTS_ADD_FIELDS")
public class ContractsAddFields {


	@Id
	@Column(name = "id")
	@GeneratedValue
	private Integer id;
	
	@ManyToOne
	@JoinColumn(name = "ref_company_fk") 
	private RefCompany refCompany;
	
	@ManyToOne
	@JoinColumn(name = "contracts_fk") 
	private Contracts contracts;
	
	@ManyToOne
	@JoinColumn(name = "ref_add_fields_fk") 
	private RefContractAddFieldsPerService refContractAddFieldsPerService;
	
	@Column(name = "string_data") 
	private String stringData;
	
	@Column(name = "number_type") 
	private Integer numberType;
	
	@Column(name = "date_type") 
	private Date dateType;
	
	@Column(name = "status", nullable = true) 
	private Integer status;
	
	@Column(name = "updated_by_fk", nullable = true) 
	private Integer updatedByFk;
	
	@Column(name = "updated_date", nullable = true) 
	private Date updatedDate;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public RefCompany getRefCompany() {
		return refCompany;
	}

	public void setRefCompany(RefCompany refCompany) {
		this.refCompany = refCompany;
	}

	public Contracts getContracts() {
		return contracts;
	}

	public void setContracts(Contracts contracts) {
		this.contracts = contracts;
	}

	public RefContractAddFieldsPerService getRefContractAddFieldsPerService() {
		return refContractAddFieldsPerService;
	}

	public void setRefContractAddFieldsPerService(
			RefContractAddFieldsPerService refContractAddFieldsPerService) {
		this.refContractAddFieldsPerService = refContractAddFieldsPerService;
	}

	public String getStringData() {
		return stringData;
	}

	public void setStringData(String stringData) {
		this.stringData = stringData;
	}

	public Integer getNumberType() {
		return numberType;
	}

	public void setNumberType(Integer numberType) {
		this.numberType = numberType;
	}

	public Date getDateType() {
		return dateType;
	}

	public void setDateType(Date dateType) {
		this.dateType = dateType;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getUpdatedByFk() {
		return updatedByFk;
	}

	public void setUpdatedByFk(Integer updatedByFk) {
		this.updatedByFk = updatedByFk;
	}

	public Date getUpdatedDate() {
		return updatedDate;
	}

	public void setUpdatedDate(Date updatedDate) {
		this.updatedDate = updatedDate;
	}

	
	
}


 

